<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线考试系统 - 学生主页</title>
    <div th:replace="include/bootstrap :: bootstrap"></div>
    <style>
        body {
            font-family: 'Roboto', '微软雅黑', sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        .hero-section {
            background: linear-gradient(135deg, #3498db, #2c3e50);
            color: white;
            padding: 60px 0;
            margin-bottom: 40px;
            border-radius: 0 0 10px 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .hero-section h1 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 20px;
        }
        .hero-section p {
            font-size: 18px;
            max-width: 800px;
            margin: 0 auto 20px;
            line-height: 1.6;
        }
        .features-section {
            padding: 40px 0;
        }
        .feature-card {
            background: white;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            height: 100%;
        }
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .feature-icon {
            font-size: 40px;
            margin-bottom: 20px;
            color: #3498db;
        }
        .feature-card h3 {
            margin-bottom: 15px;
            font-weight: 600;
            color: #2c3e50;
        }
        .feature-card p {
            color: #666;
            line-height: 1.6;
        }
        .cta-button {
            padding: 12px 30px;
            font-size: 16px;
            font-weight: 500;
            border-radius: 4px;
            margin-top: 10px;
            transition: all 0.3s ease;
        }
        .footer {
            background-color: #2c3e50;
            color: #ccc;
            padding: 20px 0;
            margin-top: 40px;
            font-size: 14px;
        }
    </style>
</head>
<body>
<div th:replace="include/bootstrap :: StudentNav"></div>

<!-- Hero Section -->
<div class="hero-section text-center">
    <div class="container">
        <h1>欢迎使用在线考试系统</h1>
        <p>一个专注于为学生提供高效、便捷的在线考试平台</p>
        <a th:href="@{/examList}" class="btn btn-lg btn-light cta-button">
            <i class="glyphicon glyphicon-pencil"></i> 开始考试
        </a>
    </div>
</div>

<!-- Features Section -->
<div class="features-section">
    <div class="container">
        <div class="row">
            <!-- Feature 1 -->
            <div class="col-md-4">
                <div class="feature-card text-center">
                    <div class="feature-icon">
                        <i class="glyphicon glyphicon-book"></i>
                    </div>
                    <h3>在线考试</h3>
                    <p>随时随地参加各科目考试，自动评分，即时查看结果，帮助您更好地检验学习成果。</p>
                    <a th:href="@{/examList}" class="btn btn-primary cta-button">进入考试</a>
                </div>
            </div>
            
            <!-- Feature 2 -->
            <div class="col-md-4">
                <div class="feature-card text-center">
                    <div class="feature-icon">
                        <i class="glyphicon glyphicon-stats"></i>
                    </div>
                    <h3>成绩分析</h3>
                    <p>查看历史考试记录和分数统计，了解自己的学习进度和知识掌握情况。</p>
                    <a th:href="@{/findAllStuPaper}" class="btn btn-primary cta-button">查看成绩</a>
                </div>
            </div>
            
            <!-- Feature 3 -->
            <div class="col-md-4">
                <div class="feature-card text-center">
                    <div class="feature-icon">
                        <i class="glyphicon glyphicon-user"></i>
                    </div>
                    <h3>账号管理</h3>
                    <p>修改个人信息和密码，确保账号安全，打造专属于您的学习空间。</p>
                    <a href="#" data-toggle="modal" data-target="#myModal" class="btn btn-primary cta-button">修改密码</a>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Footer -->
<div class="footer text-center">
    <div class="container">
        <p>© 2023 在线考试系统 版权所有</p>
    </div>
</div>

</body>
</html>